package arcane.object.gui.specific;

import arcane.object.gui.filter.KeyboardFilter;

public class ArcaneKeyboardNumericFilter implements KeyboardFilter{
	public boolean allowChar(char c){
		return c>='0' && c<='9';
	}
	public boolean allowString(String str){
		char[] ary = str.toCharArray();
		for(int i = 0;i<ary.length;i++){
			if(ary[i] < '0' || ary[i] > '9')
				return false;
		}
		return true;
	}
}
